import type { IModalConfig } from '@/components/page-modal/type';

const modalConfig: IModalConfig = {
  header: {
    titleOnCreate: '创建部门',
    titleOnEdit: '编辑部门'
  },
  pageName: 'users',
  formItems: [
    {
      label: '用户名',
      prop: 'name',
      type: 'input',
      placeholder: '请输入用户名'
    },
    {
      label: '真实姓名',
      prop: 'realname',
      type: 'input',
      placeholder: '请输入真实姓名'
    },
    {
      label: '密码',
      prop: 'password',
      type: 'input',
      placeholder: '请输入密码',
      onEditHide: true
    },
    {
      label: '手机号',
      prop: 'cellphone',
      type: 'input',
      placeholder: '请输入手机号'
    },
    {
      label: '角色',
      prop: 'roleId',
      type: 'select',
      placeholder: '请选择角色',
      options: []
    },
    {
      label: '选择部门',
      prop: 'departmentId',
      type: 'select',
      placeholder: '请选择部门',
      options: []
    }
  ]
};

export default modalConfig;
